package com.myacg.editor.common.unit.html;
/**
 * 样式块  
 * @author Administrator
 *
 */
public class CssBlock {
	private String name;
	private CssItems cssItems;
	public CssBlock(String name, CssItems cssItems) {
		this.name = name;
		this.cssItems = cssItems;
	}
	/**
	 * 输出块
	 * @return
	 */
	public String print(){
		return " "+ this.name + "{" + this.cssItems.print() + "}" ;
	}
	public String println(){
		return " "+ this.name + "{\r\n" + this.cssItems.println() + "}\r\n" ;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public CssItems getCssItems() {
		return cssItems;
	}
	public void setCssItems(CssItems cssItems) {
		this.cssItems = cssItems;
	}
	
	
}
